<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        .one{
            color:red;
            font-size: 20px;
        }
        .two{
            background-color: #a7cbff;
        }
        .three{
            text-decoration: line-through;
        }
    </style>
    <script src="jquery.js"></script>
    <script>
        function show(){
            $("li:eq(1)").toggleClass("one")
            console.log($("li:eq(1)").hasClass("one"))
        }
    </script>
</head>
<body>
    <h2>热门动画排行</h2>
    <button onclick="show()">切换样式</button>
    <ul class="animationList">
        <li>名侦探柯南</li>
        <li class="two one three">阿拉蕾</li>
        <li>海贼王</li>
    </ul>
</body>
</html>